home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
BARNET
/
COMPILER
/
SATHER
/
!Sather
/
Library
/
Views
/
Views.sam
< prev
Wrap
Text File
|
1997-03-08
|
2KB
|
36 lines
-- Copyright (C) International Computer Science Institute, 1994. COPYRIGHT --
-- NOTICE: This code is provided "AS IS" WITHOUT ANY WARRANTY and is subject --
-- to the terms of the SATHER LIBRARY GENERAL PUBLIC LICENSE contained in --
-- the file "Doc/License" of the Sather distribution. The license is also --
-- available from ICSI, 1947 Center St., Suite 600, Berkeley CA 94704, USA. --
--------> Please email comments to "sather-bugs@icsi.berkeley.edu". <----------
-- VIEW CLASSES
-- Classes:
-- $OBJ_VIEW - abstract view (object: $OB, name: STR)
-- OBJ_VIEW - Composite view
-- create(name: STR, obj: $OB),
-- horizontal,vertical: SAME
-- add_component(sub_object: $OBJ_VIEW)
-- ATTR_VIEW - Leaf view, pointer to another (sub)view
-- create(name:STR,other_obj:$OB)
--
-- VIEW_HOLDER - Collection of views for conversion to other forms
-- (not a real $DIGRAPH, since it extends the
-- abstraction in many ways)
-- create: SAME, add(v: $OBJ_VIEW)
-- VIEW_TO_DOT - Convert a view holder to dotty form
-- create(v: VIEW_HOLDER)
-- add_node(v: $OBJ_VIEW) - extend view
-- print($OSTREAM)
-------------------------------------------------------------------
view.sa -has view.sa
$OBJ_VIEW OBJ_VIEW ATTR_VIEW VIEW_HOLDER
view_todot.sa -has view_todot.sa
VIEW_TO_DOT
test/view.sa -has test/view.sa
TEST_VIEW_TO_DOT